import { createRouter, createWebHistory } from 'vue-router';

const routes = [
  // {
  //   path: '/',
  //   name: 'Home',
  //   component: () => import('@/views/Home.vue'),
  // },
  // {
  //   path: '/search',
  //   name: 'Search',
  //   component: () => import('@/views/Search.vue'),
  // },
  // {
  //   path: '/card-info',
  //   name: 'CardInfo',
  //   component: () => import('@/views/CardInfo.vue'),
  // },
  // {
  //   path: '/goods-info',
  //   name: 'GoodsInfo',
  //   component: () => import('@/views/GoodsInfo.vue'),
  // },

  {
    path: '/',
    name: 'Index',
    component: () => import('@/views/Index.vue'),
  },
  {
    path: '/search',
    name: 'Search',
    component: () => import('@/views/Search.vue'),
  },
  {
    path: '/searchZh',
    name: 'SearchZh',
    component: () => import('@/views/SearchZh.vue'),
  },
  {
    path: '/goodsDetail',
    name: 'GoodsDetail',
    component: () => import('@/views/GoodsDetail.vue'),
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
